package top.goldenyear.porpoise.dev.code.dto.req;

import io.swagger.annotations.ApiModel;
import java.util.List;
import lombok.Data;
import org.noear.solon.validation.annotation.NotNull;
import top.goldenyear.porpoise.dev.code.model.CodeColumn;
import top.goldenyear.porpoise.dev.code.model.CodeTable;

/**
 * @author airhead
 */
@ApiModel(value = "管理后台 - 代码生成表和字段的修改 Request VO")
@Data
public class CodeGenUpdateReq {

  @NotNull(message = "表定义不能为空")
  private CodeTable table;

  @NotNull(message = "字段定义不能为空")
  private List<CodeColumn> columns;
}
